#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "userlogin.h"
#include "chessshow.h"
#include "gamehall.h"
#include "./socket/sockclient.h"
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit     MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void         readLoopDispatch();
    QByteArray   getType(QByteArray info);
    void         startReadLoop();
    void         getHomeDetail(char *mem);
    void         hideHall();
signals:
    void         signal_HideHall();
private:
    void         rollBackLoading();
private:
    Ui::MainWindow         *ui;
    shared_ptr<SockClient>  client;
    ChessShow               chess;
    GameHall                wid;
};

#endif // MAINWINDOW_H
